Skip to content
This repository
Browse code

Updated Make install

Based on Lexcelsior and updated. Put everything in
/usr/share/APE_Server

I don't think this should be added to build.sh, but I think it's nice
to have if detailled in the doc/wiki.
  • Loading branch information...
commit d1f5f28b45b47666aefff46f13cbad887dbf7bda 1 parent dc018bf
Louis Charette authored February 07, 2013

Showing 1 changed file with 16 additions and 5 deletions. Show diff stats Hide diff stats

  1. 21  Makefile
21  Makefile
... ...
@@ -1,6 +1,6 @@
1 1
 EXEC=bin/aped
2 2
 
3  
-prefix		= /usr/local
  3
+prefix		= /usr/share/APE_Server
4 4
 bindir		= $(prefix)/bin
5 5
 
6 6
 
@@ -12,15 +12,26 @@ CC=gcc -D_GNU_SOURCE
12 12
 RM=rm -f
13 13
 
14 14
 all: aped
15  
-	
  15
+
16 16
 aped: $(SRC)
17 17
 	$(CC) $(CFLAGS) $(SRC) -o $(EXEC) $(LFLAGS) ./deps/udns-0.0.9/libudns.a -I ./deps/udns-0.0.9/
18  
-install: 
19  
-	install -d $(bindir)
  18
+
  19
+install:
  20
+	install -d $(bindir) $(prefix)/modules/conf $(prefix)/modules/lib $(prefix)/scripts/commands $(prefix)/scripts/examples $(prefix)/scripts/framework $(prefix)/scripts/utils $(prefix)/scripts/test
20 21
 	install -m 755 $(EXEC) $(bindir)
  22
+	install -m 644 bin/ape.conf $(bindir)
  23
+	install -m 644 AUTHORS COPYING README $(prefix)
  24
+	install -m 644 modules/conf/* $(prefix)/modules/conf/
  25
+	install -m 755 modules/lib/* $(prefix)/modules/lib/
  26
+	install -m 644 scripts/main.ape.js $(prefix)/scripts/
  27
+	install -m 644 scripts/commands/* $(prefix)/scripts/commands/
  28
+	install -m 644 scripts/examples/* $(prefix)/scripts/examples/
  29
+	install -m 644 scripts/framework/* $(prefix)/scripts/framework/
  30
+	install -m 644 scripts/utils/* $(prefix)/scripts/utils/
  31
+	install -m 644 scripts/test/* $(prefix)/scripts/test/
21 32
 
22 33
 uninstall:
23  
-	$(RM) $(bindir)/aped
  34
+	$(RM) -R $(prefix)
24 35
 
25 36
 clean:
26 37
 	$(RM) $(EXEC)

0 notes on commit d1f5f28

Please sign in to comment.
Something went wrong with that request. Please try again.