Update Makefile
- Respect $DESTDIR - Fix uninstall target
This commit is contained in:
parent
e31e9da667
commit
089d4ac500
21
Makefile
21
Makefile
|
@ -26,18 +26,19 @@ bloat.def.conf:
|
||||||
< bloat.conf > bloat.def.conf
|
< bloat.conf > bloat.def.conf
|
||||||
|
|
||||||
install: bloat
|
install: bloat
|
||||||
mkdir -p $(BINPATH) $(SHAREPATH)/templates $(SHAREPATH)/static
|
mkdir -p $(DESTDIR)$(BINPATH) \
|
||||||
cp bloat $(BINPATH)/bloat
|
$(DESTDIR)$(SHAREPATH)/templates \
|
||||||
chmod 0755 $(BINPATH)/bloat
|
$(DESTDIR)$(SHAREPATH)/static
|
||||||
cp -r templates/* $(SHAREPATH)/templates
|
cp bloat $(DESTDIR)$(BINPATH)/bloat
|
||||||
chmod 0644 $(SHAREPATH)/templates/*
|
chmod 0755 $(DESTDIR)$(BINPATH)/bloat
|
||||||
cp -r static/* $(SHAREPATH)/static
|
cp -r templates/* $(DESTDIR)$(SHAREPATH)/templates
|
||||||
chmod 0644 $(SHAREPATH)/static/*
|
chmod 0644 $(DESTDIR)$(SHAREPATH)/templates/*
|
||||||
|
cp -r static/* $(DESTDIR)$(SHAREPATH)/static
|
||||||
|
chmod 0644 $(DESTDIR)$(SHAREPATH)/static/*
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm -f $(BINPATH)/bloat
|
rm -f $(DESTDIR)$(BINPATH)/bloat
|
||||||
rm -fr $(SHAREPATH)/templates
|
rm -fr $(DESTDIR)$(SHAREPATH)
|
||||||
rm -fr $(SHAREPATH)/static
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f bloat
|
rm -f bloat
|
||||||
|
|
Loading…
Reference in New Issue