File: Makefile.install

package info (click to toggle)
fastdep 0.16-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 596 kB
  • ctags: 323
  • sloc: cpp: 2,144; ansic: 814; sh: 208; makefile: 124
file content (24 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Simple install/uninstall script for projects with one binary only
# Version 0

include Makefile.options

TARGETDIR=$(PREFIX)/$(CATEGORY)/$(NAME)

check-install:
	make -f Makefile.install -n install

install:
	install -D $(BINARY) $(TARGETDIR)/bin/$(BINARY)
	install -D Makefile.install $(TARGETDIR)/Makefile.install
	install -D Makefile.options $(TARGETDIR)/Makefile.options

check-uninstall:
	make -f Makefile.install -n uninstall

uninstall:
	-rm $(TARGETDIR)/bin/$(BINARY)
	-rm $(TARGETDIR)/Makefile.install
	-rm $(TARGETDIR)/Makefile.options	
	-rm -r $(TARGETDIR)/bin
	-rm -r $(TARGETDIR)