This repository was archived by the owner on May 15, 2025. It is now read-only.
forked from raboof/notion
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (40 loc) · 1.53 KB
/
Copy pathMakefile
File metadata and controls
48 lines (40 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
include build/system-inc.mk
include modulelist.mk
INSTALL_SUBDIRS= $(MODULE_LIST) ioncore notion utils man po
SUBDIRS = $(LIBS_SUBDIRS) $(INSTALL_SUBDIRS)
DOCS = README.md LICENSE CHANGELOG
TO_REALCLEAN = build/ac/system-ac.mk
POTFILE=po/notion.pot
include build/rules.mk
_install:
$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
for i in $(DOCS); do \
$(INSTALL) -m $(DATA_MODE) $$i $(DESTDIR)$(DOCDIR); \
done
relocatable_build:
$(MAKE) RELOCATABLE=1 PREFIX=
snapshot:
PWD=`pwd` ;\
DIR=`basename "$$PWD"` ;\
RELEASE=`./nextversion.sh`-snapshot ;\
perl -p -i -e "s/^#define NOTION_RELEASE.*/#define NOTION_RELEASE \"$$RELEASE\"/" version.h ;\
cd .. ;\
tar --exclude-vcs -czf notion-$$RELEASE-src.tar.gz $$DIR ;\
tar --exclude-vcs -cjf notion-$$RELEASE-src.tar.bz2 $$DIR ;\
cd $$DIR ;\
git checkout version.h
dist:
PWD=`pwd` ;\
DIR=`basename "$$PWD"` ;\
RELEASE=`./nextversion.sh` ;\
perl -p -i -e "s/^#define NOTION_RELEASE.*/#define NOTION_RELEASE \"$$RELEASE\"/" version.h ;\
git add version.h; git commit -m "Releasing version $$RELEASE" ;\
git tag -s -m "Release $$RELEASE" $$RELEASE ; git push --tags ;\
git archive --prefix notion-$$RELEASE/ --format=tar.gz $$RELEASE > ../notion-$$RELEASE-src.tar.gz ;\
git archive --prefix notion-$$RELEASE/ --format=tar $$RELEASE | bzip2 > ../notion-$$RELEASE-src.tar.bz2 ;\
perl -p -i -e "s/^#define NOTION_RELEASE.*/#define NOTION_RELEASE \"snapshot\"/" version.h ;\
git add version.h; git commit -m "Released version $$RELEASE" ; git push
.PHONY: test
test:
$(MAKE) -C mod_xrandr test
$(MAKE) -C test