Updated Makefile to match repository.
This commit is contained in:
parent
035f40a83d
commit
fda6504e35
32
Makefile
32
Makefile
@ -7,31 +7,12 @@ LIBDIR := $(PREFIX)/lib
|
|||||||
SHAREDIR := $(PREFIX)/share
|
SHAREDIR := $(PREFIX)/share
|
||||||
INCLUDEDIR := $(PREFIX)/include
|
INCLUDEDIR := $(PREFIX)/include
|
||||||
MANDIR := $(SHAREDIR)/man
|
MANDIR := $(SHAREDIR)/man
|
||||||
CRFLAGS := --release
|
|
||||||
|
|
||||||
Q := @
|
Q := @
|
||||||
|
|
||||||
all: todoc main.js style.css
|
all: main.js style.css
|
||||||
@:
|
@:
|
||||||
|
|
||||||
todoc: src/client.cr
|
|
||||||
@echo '[01;35m CR > [01;37mtodoc[00m'
|
|
||||||
$(Q)crystal build $(CRFLAGS) src/client.cr -o 'todoc'
|
|
||||||
|
|
||||||
|
|
||||||
todoc.install: todoc
|
|
||||||
@echo '[01;31m IN > [01;37m$(BINDIR)/todoc[00m'
|
|
||||||
$(Q)mkdir -p '$(DESTDIR)$(BINDIR)'
|
|
||||||
$(Q)install -m0755 todoc $(DESTDIR)$(BINDIR)/todoc
|
|
||||||
|
|
||||||
todoc.clean:
|
|
||||||
@echo '[01;37m RM > [01;37mtodoc[00m'
|
|
||||||
$(Q)rm -f todoc
|
|
||||||
|
|
||||||
todoc.uninstall:
|
|
||||||
@echo '[01;37m RM > [01;37m$(BINDIR)/todoc[00m'
|
|
||||||
$(Q)rm -f '$(DESTDIR)$(BINDIR)/todoc'
|
|
||||||
|
|
||||||
main.js: main.bundle.js
|
main.js: main.bundle.js
|
||||||
@echo '[01;31m MIN > [01;37mmain.js[00m'
|
@echo '[01;31m MIN > [01;37mmain.js[00m'
|
||||||
$(Q)npx babel --minified main.bundle.js -o main.js
|
$(Q)npx babel --minified main.bundle.js -o main.js
|
||||||
@ -94,13 +75,13 @@ $(DESTDIR)$(INCLUDEDIR):
|
|||||||
$(DESTDIR)$(MANDIR):
|
$(DESTDIR)$(MANDIR):
|
||||||
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
@echo '[01;35m DIR > [01;37m$(MANDIR)[00m'
|
||||||
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
$(Q)mkdir -p $(DESTDIR)$(MANDIR)
|
||||||
install: todoc.install main.js.install style.css.install
|
install: main.js.install style.css.install
|
||||||
@:
|
@:
|
||||||
|
|
||||||
uninstall: todoc.uninstall main.js.uninstall style.css.uninstall
|
uninstall: main.js.uninstall style.css.uninstall
|
||||||
@:
|
@:
|
||||||
|
|
||||||
clean: todoc.clean main.js.clean style.css.clean
|
clean: main.js.clean style.css.clean
|
||||||
distclean: clean
|
distclean: clean
|
||||||
dist: dist-gz dist-xz dist-bz2
|
dist: dist-gz dist-xz dist-bz2
|
||||||
$(Q)rm -- $(PACKAGE)-$(VERSION)
|
$(Q)rm -- $(PACKAGE)-$(VERSION)
|
||||||
@ -113,7 +94,6 @@ dist-gz: $(PACKAGE)-$(VERSION).tar.gz
|
|||||||
$(PACKAGE)-$(VERSION).tar.gz: distdir
|
$(PACKAGE)-$(VERSION).tar.gz: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.gz[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.gz[00m'
|
||||||
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
|
$(Q)tar czf $(PACKAGE)-$(VERSION).tar.gz \
|
||||||
$(PACKAGE)-$(VERSION)/src/client.cr \
|
|
||||||
$(PACKAGE)-$(VERSION)/client/index.ls \
|
$(PACKAGE)-$(VERSION)/client/index.ls \
|
||||||
$(PACKAGE)-$(VERSION)/client/style.sass \
|
$(PACKAGE)-$(VERSION)/client/style.sass \
|
||||||
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
||||||
@ -132,7 +112,6 @@ dist-xz: $(PACKAGE)-$(VERSION).tar.xz
|
|||||||
$(PACKAGE)-$(VERSION).tar.xz: distdir
|
$(PACKAGE)-$(VERSION).tar.xz: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.xz[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.xz[00m'
|
||||||
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
|
$(Q)tar cJf $(PACKAGE)-$(VERSION).tar.xz \
|
||||||
$(PACKAGE)-$(VERSION)/src/client.cr \
|
|
||||||
$(PACKAGE)-$(VERSION)/client/index.ls \
|
$(PACKAGE)-$(VERSION)/client/index.ls \
|
||||||
$(PACKAGE)-$(VERSION)/client/style.sass \
|
$(PACKAGE)-$(VERSION)/client/style.sass \
|
||||||
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
||||||
@ -151,7 +130,6 @@ dist-bz2: $(PACKAGE)-$(VERSION).tar.bz2
|
|||||||
$(PACKAGE)-$(VERSION).tar.bz2: distdir
|
$(PACKAGE)-$(VERSION).tar.bz2: distdir
|
||||||
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.bz2[00m'
|
@echo '[01;33m TAR > [01;37m$(PACKAGE)-$(VERSION).tar.bz2[00m'
|
||||||
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
|
$(Q)tar cjf $(PACKAGE)-$(VERSION).tar.bz2 \
|
||||||
$(PACKAGE)-$(VERSION)/src/client.cr \
|
|
||||||
$(PACKAGE)-$(VERSION)/client/index.ls \
|
$(PACKAGE)-$(VERSION)/client/index.ls \
|
||||||
$(PACKAGE)-$(VERSION)/client/style.sass \
|
$(PACKAGE)-$(VERSION)/client/style.sass \
|
||||||
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
$(PACKAGE)-$(VERSION)/client/authd.ls \
|
||||||
@ -178,7 +156,6 @@ help:
|
|||||||
@echo '[00m - [01;32muninstall [37m Deinstalls the project.[00m'
|
@echo '[00m - [01;32muninstall [37m Deinstalls the project.[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mCLI-modifiable variables:[00m'
|
@echo '[01;37mCLI-modifiable variables:[00m'
|
||||||
@echo ' - [01;34mCRFLAGS [37m ${CRFLAGS}[00m'
|
|
||||||
@echo ' - [01;34mPREFIX [37m ${PREFIX}[00m'
|
@echo ' - [01;34mPREFIX [37m ${PREFIX}[00m'
|
||||||
@echo ' - [01;34mBINDIR [37m ${BINDIR}[00m'
|
@echo ' - [01;34mBINDIR [37m ${BINDIR}[00m'
|
||||||
@echo ' - [01;34mLIBDIR [37m ${LIBDIR}[00m'
|
@echo ' - [01;34mLIBDIR [37m ${LIBDIR}[00m'
|
||||||
@ -187,7 +164,6 @@ help:
|
|||||||
@echo ' - [01;34mMANDIR [37m ${MANDIR}[00m'
|
@echo ' - [01;34mMANDIR [37m ${MANDIR}[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
@echo '[01;37mProject targets: [00m'
|
@echo '[01;37mProject targets: [00m'
|
||||||
@echo ' - [01;33mtodoc [37m crystal[00m'
|
|
||||||
@echo ' - [01;33mmain.js [37m livescript[00m'
|
@echo ' - [01;33mmain.js [37m livescript[00m'
|
||||||
@echo ' - [01;33mstyle.css [37m sass[00m'
|
@echo ' - [01;33mstyle.css [37m sass[00m'
|
||||||
@echo ''
|
@echo ''
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
package=todo-webclient
|
package=todo-webclient
|
||||||
version=0.1
|
version=0.1
|
||||||
|
|
||||||
targets=(todoc)
|
#targets=(todoc)
|
||||||
type[todoc]=crystal
|
#type[todoc]=crystal
|
||||||
sources[todoc]=src/client.cr
|
#sources[todoc]=src/client.cr
|
||||||
depends[todoc]="$(find src | grep .cr$ | grep -v src/client.cr)"
|
#depends[todoc]="$(find src | grep .cr$ | grep -v src/client.cr)"
|
||||||
|
|
||||||
targets+=(main.js)
|
targets+=(main.js)
|
||||||
type[main.js]=livescript
|
type[main.js]=livescript
|
||||||
|
Loading…
Reference in New Issue
Block a user