forked from GraseHotspot/grase-www-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (18 loc) · 823 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
COMPOSER_FILES = files/usr/share/grase/composer.json files/usr/share/grase/composer.lock files/usr/share/grase/vendor/
BOWER_FILES = files/usr/share/grase/bower.json
VERSION = $(shell sed -n '/grase-www-portal/s/[^ ]* (//;s/).*//p;q' debian/changelog)
all: bower composer
#files/usr/share/grase/src/includes/constants.php: debian/changelog
sed -i 's/APPLICATION_VERSION", "[^"]*"/APPLICATION_VERSION", "$(VERSION)"/' files/usr/share/grase/src/includes/constants.php
chmod 0440 sudo/grase-www-portal
bower:
mkdir -p ext-libs/bower
cp $(BOWER_FILES) ext-libs/bower
cd ext-libs/bower; /usr/local/bin/bower install
composer:
cd files/usr/share/grase/; /usr/local/bin/composer install
mkdir -p ext-libs/composer
cp -r $(COMPOSER_FILES) ext-libs/composer/
rm -fr files/usr/share/grase/vendor
clean:
rm -fr ext-libs