summaryrefslogtreecommitdiff
blob: 2573b01e5c91a8e94b34cb2eee4391c8fe6ebcfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--- Makefile.orig	2004-12-11 01:36:11.000000000 -0800
+++ Makefile	2004-12-11 01:36:14.000000000 -0800
@@ -13,9 +13,7 @@
 MIXER=-lSDL_mixer
 SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
 
-CFLAGS=-Wall -pedantic -std=c99 -O2 \
-	$(shell sdl-config --cflags) \
-	-DDATAPATH=\"$(DATAPATH)\"
+CFLAGS= $(ECFLAGS) $(shell sdl-config --cflags) -DDATAPATH=\"$(DATAPATH)\"
 
 all:	komi
 
@@ -24,15 +22,13 @@
 	-rm *.o
 
 install:
-	install -d $(DATAPATH)
-	cp -R komidata/* $(DATAPATH)
-	chmod -R 644 $(DATAPATH)
-	chmod 755 $(DATAPATH)
-	install -d $(BINPATH)
-	cp komi $(BINPATH)
-	chmod 755 $(BINPATH)komi
-	install -d $(MANPATH)
-	cp komi.6 $(MANPATH)komi.6
+	install -d $(DESTDIR)$(DATAPATH)
+	cp -R komidata/* $(DESTDIR)$(DATAPATH)
+	chmod -R 644 $(DESTDIR)$(DATAPATH)
+	chmod 755 $(DESTDIR)$(DATAPATH)
+	install -d $(DESTDIR)$(BINPATH)
+	cp komi $(DESTDIR)$(BINPATH)
+	chmod 755 $(DESTDIR)$(BINPATH)/komi
 
 komi:	komi.o
 	$(CC) $(CFLAGS) komi.o -o komi $(SDL_LIB)