updated on Tue Jan 17 16:10:12 UTC 2012
[aur-mirror.git] / bobobot / makefile.diff
blobaac2f5bb40a6fd13b881e0e18763d07b8899c461
1 --- makefile.orig 2006-02-20 03:20:38.000000000 -0500
2 +++ makefile 2006-02-20 03:20:59.000000000 -0500
3 @@ -39,22 +39,22 @@
4 # Makefile commands:---------------------------------------------------------
6 all: bobobot
7 - @echo "... Making sure data directory ($(DATA)/...) exists"
8 - - mkdir $(DATA)
9 - chmod 755 $(DATA)
10 + @echo "... Making sure data directory ($(DESTDIR)/$(DATA)/...) exists"
11 + - mkdir -p $(DESTDIR)/$(DATA)
12 + chmod 755 $(DESTDIR)/$(DATA)
13 @echo "... Making sure image, sound and level directories exist"
14 - - mkdir $(DATA)/sounds $(DATA)/images $(DATA)/levels $(DATA)/mods
15 - chmod 755 $(DATA)/sounds $(DATA)/images $(DATA)/levels $(DATA)/mods
16 - @echo "... Copying data into data directories ($(DATA)/...)"
17 - - cp sounds/* $(DATA)/sounds 2> /dev/null
18 - - cp images/* $(DATA)/images 2> /dev/null
19 - - cp levels/* $(DATA)/levels 2> /dev/null
20 - - cp mods/* $(DATA)/mods 2> /dev/null
21 - chmod 644 $(DATA)/sounds/* $(DATA)/images/* $(DATA)/levels/* \
22 - $(DATA)/mods/*
23 + - mkdir -p $(DESTDIR)/$(DATA)/sounds $(DESTDIR)/$(DATA)/images $(DESTDIR)/$(DATA)/levels $(DESTDIR)/$(DATA)/mods
24 + chmod 755 $(DESTDIR)/$(DATA)/sounds $(DESTDIR)/$(DATA)/images $(DESTDIR)/$(DATA)/levels $(DESTDIR)/$(DATA)/mods
25 + @echo "... Copying data into data directories ($(DESTDIR)/$(DATA)/...)"
26 + - cp sounds/* $(DESTDIR)/$(DATA)/sounds 2> /dev/null
27 + - cp images/* $(DESTDIR)/$(DATA)/images 2> /dev/null
28 + - cp levels/* $(DESTDIR)/$(DATA)/levels 2> /dev/null
29 + - cp mods/* $(DESTDIR)/$(DATA)/mods 2> /dev/null
30 + chmod 644 $(DESTDIR)/$(DATA)/sounds/* $(DESTDIR)/$(DATA)/images/* $(DESTDIR)/$(DATA)/levels/* \
31 + $(DESTDIR)/$(DATA)/mods/*
32 @echo "... Copying executable into installation location \
33 - ($(INSTALLROOT))"
34 - - cp bobobot $(INSTALLROOT) 2> /dev/null
35 + ($(DESTDIR)/$(INSTALLROOT))"
36 + - cp bobobot $(DESTDIR)/$(INSTALLROOT) 2> /dev/null
38 clean:
39 - rm obj/*.o bobobot