File: Makefile.install

package info (click to toggle)
fastdep 0.16-13
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 600 kB
  • ctags: 327
  • sloc: cpp: 2,161; ansic: 814; sh: 208; makefile: 123
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)