Commit 3495444f authored by Admin's avatar Admin
Browse files

removed Debian-specific distromaking, will use AppImage in future;

parent ad93f5be
VERS=1.0
DATE=2020-03-20
DATE=2020-04-27
# used for nightly build
DATEN=$(shell date +"%Y-%m-%d")
......@@ -7,6 +7,7 @@ VERSN=$(VERS).$(shell svn info | grep 'Revision' | awk '{ print $$2; }')
PROJNAME=HomeBot
SHORTNAME=hobo
OLDGEN_LIB=FHEM
RELATIVE_PATH=YES
BINDIR=/opt/$(PROJNAME)
......@@ -35,7 +36,7 @@ all:
@echo "Use 'make <target>', where <target> is"
@echo " install - to install $(SHORTNAME)"
@echo " dist - to create a .tar.gz and a .zip file"
@echo " deb - to create a .deb file"
@echo " aimg - to create an .AppImage file"
@echo " backup - to backup current installation of $(SHORTNAME)"
@echo " uninstall - to uninstall $(SHORTNAME) (with backup)"
@echo "Check Makefile for default installation paths!"
......@@ -45,7 +46,7 @@ install:
@-$(foreach DIR,$(DEST), if [ ! -e $(DIR) ]; then mkdir -p $(DIR); fi; )
@echo "- fixing permissions in $(SHORTNAME).cfg"
perl contrib/commandref_join.pl
@find FHEM configDB.pm docs www \
@find $(OLDGEN_LIB) configDB.pm docs www \
-type f -print | xargs chmod 644
@cp $(SHORTNAME).cfg $(SHORTNAME).cfg.install
@-if [ "$(RELATIVE_PATH)" != YES ]; then\
......@@ -60,7 +61,7 @@ install:
@echo "- copying files"
@rm $(SHORTNAME).cfg.install
@cp $(SHORTNAME).pl $(RBINDIR)
@cp -rp FHEM lib t contrib docs www configDB.pm $(RMODDIR)
@cp -rp $(OLDGEN_LIB) lib t contrib docs www configDB.pm $(RMODDIR)
@cp -rp demolog $(SHORTNAME).cfg.demo $(RDEMODIR)
@echo "- cleanup: removing .svn leftovers"
@echo
......@@ -76,41 +77,9 @@ update:
sudo make install
sudo perl /opt/HomeBot/hobo.pl /opt/HomeBot/hobo.cfg
dist:
mkdir .f
cp -r $(SHORTNAME).pl $(SHORTNAME).cfg Makefile\
demolog $(SHORTNAME).cfg.demo\
FHEM configDB.pm docs www .f
mkdir .f/log
touch .f/log/empty_file.txt
find .f -name .svn -print | xargs rm -rf
find .f -name svn-commit\* -print | xargs rm -rf
find .f -name \*.orig -print | xargs rm -f
find .f -name .#\* -print | xargs rm -f
find .f -type f -print | grep -v Makefile | grep -v SWAP |\
xargs perl -pi -e 's/=VERS=/$(VERS)/g;s/=DATE=/$(DATE)/g'
@echo " deb-nightly - to create a nightly .deb file from current svn"
rm -rf .f/www/SVGcache
mv .f $(DESTDIR)
tar cf - $(DESTDIR) | gzip -9 > $(DESTDIR).tar.gz
zip -r $(DESTDIR).zip $(DESTDIR)
rm -rf $(DESTDIR)
aimg:
@echo 'NYI'
deb:
@echo $(PWD)
rm -rf .f
rm -rf $(DESTDIR)
make ROOT=`pwd`/.f install
find .f -name \*.orig -print | xargs rm -f
find .f -name .#\* -print | xargs rm -f
find .f -type f -print | grep -v Makefile |\
xargs perl -pi -e 's/=VERS=/$(VERSN)/g;s/=DATE=/$(DATEN)/g'
find .f -type f | xargs chmod 644
find .f -type d | xargs chmod 755
chown -R root:root .f
mv .f $(DESTDIR)
dpkg-deb --build $(DESTDIR)
rm -rf $(DESTDIR)
backup:
@echo
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment