add makefile with install/uninstall targets
This commit is contained in:
parent
64564562b8
commit
ce8dd726e5
1 changed files with 16 additions and 0 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
PKGNAME=university-setup
|
||||
PREFIX=mkessler
|
||||
|
||||
install:
|
||||
mkdir -p $(DESTDIR)/opt/$(PREFIX)/${PKGNAME}
|
||||
mkdir -p $(DESTDIR)/etc/opt/$(PREFIX)/${PKGNAME}
|
||||
|
||||
cp src/* $(DESTDIR)/opt/$(PREFIX)/${PKGNAME}
|
||||
cp config/* $(DESTDIR)/etc/opt/$(PREFIX)/${PKGNAME}
|
||||
|
||||
install -Dm644 "LICENSE" $(DESTDIR)/usr/share/licenses/$(PREFIX)/${PKGNAME}/LICENSE
|
||||
|
||||
uninstall:
|
||||
rm -rf $(DESTDIR)/opt/$(PREFIX)/${PKGNAME}
|
||||
rm -rf $(DESTDIR)/etc/opt/$(PREFIX)/${PKGNAME}
|
||||
rm -rf $(DESTDIR)/usr/share//licenses/$(PREFIX)/${PKGNAME}
|
Loading…
Reference in a new issue