Preparing for the next release

This commit is contained in:
Pierre Pronchery 2009-08-17 22:21:49 +00:00
parent 1ad4789def
commit 9e37e8f102
6 changed files with 40 additions and 5 deletions

View File

@ -1,6 +1,6 @@
PACKAGE = Editor
VERSION = 0.0.1
SUBDIRS = src
VERSION = 0.0.2
SUBDIRS = data src
RM = rm -f
LN = ln -f
TAR = tar -czvf
@ -21,6 +21,9 @@ dist:
$(RM) -r $(PACKAGE)-$(VERSION)
$(LN) -s . $(PACKAGE)-$(VERSION)
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz \
$(PACKAGE)-$(VERSION)/data/Makefile \
$(PACKAGE)-$(VERSION)/data/editor.desktop \
$(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/src/callbacks.c \
$(PACKAGE)-$(VERSION)/src/editor.c \
$(PACKAGE)-$(VERSION)/src/main.c \

View File

@ -1,5 +1,5 @@
#define PACKAGE "Editor"
#define VERSION "0.0.1"
#define VERSION "0.0.2"
#ifndef PREFIX
# define PREFIX "/usr/local"

21
data/Makefile Normal file
View File

@ -0,0 +1,21 @@
PREFIX = /usr/local
DESTDIR =
MKDIR = mkdir -p
INSTALL = install
RM = rm -f
all:
clean:
distclean: clean
install: all
$(MKDIR) $(DESTDIR)$(PREFIX)/share/applications
$(INSTALL) -m 0644 editor.desktop $(DESTDIR)$(PREFIX)/share/applications/editor.desktop
uninstall:
$(RM) $(DESTDIR)$(PREFIX)/share/applications/editor.desktop
.PHONY: all clean distclean install uninstall

7
data/editor.desktop Normal file
View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Text editor
Comment=A simple text editor
Exec=editor
Icon=text-editor
Type=Application
Categories=;GTK;

4
data/project.conf Normal file
View File

@ -0,0 +1,4 @@
dist=Makefile,editor.desktop
[editor.desktop]
install=$(PREFIX)/share/applications

View File

@ -1,6 +1,6 @@
package=Editor
version=0.0.1
version=0.0.2
config=h
subdirs=src
subdirs=data,src
dist=Makefile,COPYING,config.h