projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix edition of non well geolocalized jobs
[platal.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
e8abfa6
..
a32cc3e
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-1,8
+1,11
@@
+
# $Id: Makefile,v 1.5 2004/11/25 20:18:39 x99laine Exp $
################################################################################
# definitions
# $Id: Makefile,v 1.5 2004/11/25 20:18:39 x99laine Exp $
################################################################################
# definitions
-VERSION := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/\t.*//;s/ .*//")
+VERSNUM := $(shell grep VERSION ChangeLog | head -1 | sed -e "s/VERSION //;s/ .*//")
+VERSTAG := $(shell grep VERSION ChangeLog | head -1 | grep 'XX' > /dev/null 2> /dev/null && echo 'beta')
+VERSION = $(VERSNUM)$(VERSTAG)
PKG_NAME = platal
PKG_DIST = $(PKG_NAME)-$(VERSION)
PKG_NAME = platal
PKG_DIST = $(PKG_NAME)-$(VERSION)
@@
-16,13
+19,13
@@
VCS_FILTER = ! -name .arch-ids ! -name CVS
all: build
all: build
-build: core banana wiki
+build: core banana wiki
jquery
q:
@echo -e "Code statistics\n"
@sloccount $(filter-out wiki/ spool/, $(wildcard */)) 2> /dev/null | egrep '^[a-z]*:'
q:
@echo -e "Code statistics\n"
@sloccount $(filter-out wiki/ spool/, $(wildcard */)) 2> /dev/null | egrep '^[a-z]*:'
-%: %.in Makefile
+%: %.in Makefile
ChangeLog
sed -e 's,@VERSION@,$(VERSION),g' $< > $@
################################################################################
sed -e 's,@VERSION@,$(VERSION),g' $< > $@
################################################################################
@@
-32,12
+35,16
@@
q:
## core
##
## core
##
-core: spool/templates_c
include/platal/globals.inc.php
+core: spool/templates_c
spool/mails_c include/globals.inc.php configs/platal.cron htdocs/.htaccess
-spool/templates_c spool/uploads:
+spool/templates_c spool/
mails_c spool/
uploads:
mkdir -p $@
chmod o+w $@
mkdir -p $@
chmod o+w $@
+htdocs/.htaccess: htdocs/.htaccess.in Makefile
+ @REWRITE_BASE="/~$$(id -un)"; \
+ test "$$REWRITE_BASE" = "/~web" && REWRITE_BASE="/"; \
+ sed -e "s,@REWRITE_BASE@,$$REWRITE_BASE,g" $< > $@
##
## wiki
##
## wiki
@@
-65,17
+72,17
@@
htdocs/wiki:
spool/wiki.d:
mkdir -p $@
chmod o+w $@
spool/wiki.d:
mkdir -p $@
chmod o+w $@
- cd $@ && ln -sf ../../in
stall.d
/wiki/wiki.d/* .
+ cd $@ && ln -sf ../../in
clude
/wiki/wiki.d/* .
wiki/cookbook/e-protect.php:
wiki/cookbook/e-protect.php:
- cd wiki/cookbook && ln -sf ../../in
stall.d
/wiki/e-protect.php
+ cd wiki/cookbook && ln -sf ../../in
clude
/wiki/e-protect.php
wiki/local/farmconfig.php:
wiki/local/farmconfig.php:
- cd wiki/local/
&& ln -sf ../../plugins/pmwiki.config.php
farmconfig.php
+ cd wiki/local/
&& ln -sf ../../include/wiki/
farmconfig.php
wiki/pub/skins/empty:
wiki/pub/skins/empty:
- cd wiki/pub/skins/ && ln -sf ../../../in
stall.d
/wiki/empty
+ cd wiki/pub/skins/ && ln -sf ../../../in
clude
/wiki/empty
get-wiki:
get-wiki:
@@
-97,6
+104,14
@@
htdocs/images/banana:
htdocs/css/banana.css:
cd $(@D) && ln -sf /usr/share/banana/css/style.css $(@F)
htdocs/css/banana.css:
cd $(@D) && ln -sf /usr/share/banana/css/style.css $(@F)
+##
+## jquery
+##
+
+jquery: htdocs/javascript/jquery.js htdocs/javascript/jquery.autocomplete.js
+htdocs/javascript/jquery.js:
+ wget http://jquery.com/src/jquery-latest.pack.js -O $@ -q || ($(RM) $@; exit 1)
+
################################################################################
.PHONY: build dist clean wiki build-wiki banana
################################################################################
.PHONY: build dist clean wiki build-wiki banana