Removed obsolete makefiles.

Added main Makefile which will try to detect installed jam and
call it as background process
This commit is contained in:
Sanel Zukan 2007-09-27 13:58:59 +00:00
parent 6170d43d19
commit 1a7f6d9f06
20 changed files with 32 additions and 749 deletions

121
Makefile
View File

@ -2,102 +2,45 @@
# $Id: Makefile 1667 2006-06-14 16:28:31Z karijes $
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2000-2006 EDE Authors.
# Copyright (c) 2007 EDE Authors.
#
# This program is licenced under terms of the
# GNU General Public Licence version 2 or newer.
# This program is licensed under terms of the
# GNU General Public License version 2 or newer.
# See COPYING for details.
# main file for making
JAM_PATH=
include makeinclude
define jam-cmd
@if [ -z $(JAM_PATH) ]; then \
if [ -x ./jam ]; then \
jam_path="./jam"; \
else \
jam_path=`which jam`; \
fi; \
else \
jam_path=$(JAM_PATH); \
fi; \
\
if [ -z $$jam_path ] || [ ! -x $$jam_path ]; then \
echo ""; \
echo "*** Unable to find jam either in `pwd`"; \
echo "*** or in $$PATH"; \
echo ""; \
else \
$$jam_path $1; \
fi
endef
DIRS = common\
ecolorconf\
econtrol\
efinder\
eiconman\
eiconsconf\
einstaller\
ekeyconf\
elauncher\
emenueditor\
epanelconf\
erun\
esvrconf\
etimedate\
etip\
ewmconf\
eworkpanel\
edisplayconf\
edewm\
datas\
datas/programs-links\
datas/desktop-links\
datas/icons-16\
datas/icons-48\
datas/schemes\
docs/ede $(EVOLUME)
all: makeinclude
for dir in $(DIRS); do\
echo "Going to $$dir...";\
(cd $$dir; $(MAKE) $(MFLAGS)) || exit;\
done
@@echo "Now please run 'make install' as root"
# each submakefile should implement install and clean
all:
$(call jam-cmd)
.PHONY: clean
install: makeinclude
for dir in $(DIRS); do\
echo "Installing from $$dir...";\
(cd $$dir; $(MAKE) $(MFLAGS) install) || exit;\
done
install:
$(call jam-cmd, install)
uninstall: makeinclude
for dir in $(DIRS); do\
echo "Uninstalling $$dir...";\
(cd $$dir; $(MAKE) $(MFLAGS) uninstall) || exit;\
done
uninstall:
$(call jam-cmd, uninstall)
clean: makeinclude
for dir in $(DIRS); do\
echo "Cleaning $$dir...";\
(cd $$dir; $(MAKE) $(MFLAGS) clean) || exit;\
done
depend: makeinclude
for dir in $(DIRS); do\
echo "Creating dependencies in $$dir...";\
(cd $$dir; $(MAKEDEPEND) -- $(CXXFLAGS) *.cpp) || exit;\
done
# for maintainers
define make-archive
NAME=`awk '/PACKAGE_TARNAME/ {print $$3}' $1 | sed -e 's/\"//g'`; \
VERS=`awk '/PACKAGE_VERSION/ {print $$3}' $1 | sed -e 's/\"//g'`; \
ARCH=$$NAME-$$VERS.tar.bz2; \
if [ -e $$ARCH ]; then \
echo "Removing previous package..."; \
rm $$ARCH; \
fi; \
tar -cjpvf $$ARCH --exclude $$ARCH .
endef
# cvs made some files executable
define fix-chmod
echo "Fixing permissions..."; \
find . -name "*.*" -exec chmod -x {} \;; \
chmod +x l10n-prepare.pl; \
chmod -x AUTHORS BUGS COPYING ChangeLog INSTALL NEWS
endef
archive: clean
rm -Rf `find . -name "CVS"`
autoconf
rm -Rf autom4te.cache
$(call fix-chmod)
$(call make-archive, edeconf.h)
clean:
$(call jam-cmd, clean)

View File

@ -1,21 +0,0 @@
CPPFILES = ecolorconf.cpp ecolorutils.cpp EDE_FontChooser.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp ../edelib2/Run.cpp ../edelib2/process.cpp ../edelib2/pty.cpp
TARGET = ecolorconf
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,15 +0,0 @@
CPPFILES = about_dialog.cpp Config.cpp Icon.cpp MimeType.cpp process.cpp pty.cpp Run.cpp Util.cpp
TARGET =
include ../makeinclude
all: about_dialog.o Config.o Icon.o MimeType.o process.o pty.o Run.o Util.o
install:
uninstall:
clean:
$(RM) *.o

View File

@ -1,38 +0,0 @@
#
# $Id: Makefile 1696 2006-07-21 13:23:37Z karijes $
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2000-2006 EDE Authors.
#
# This program is licenced under terms of the
# GNU General Public Licence version 2 or newer.
# See COPYING for details.
include ../../makeinclude
define make_test
ALL += $1
$1 : $1.cpp
echo Compiling $$<...
$(CXX) $(CXXFLAGS) $$< -o $$@ $(LIBS)
endef
# Note: $(eval...) must be used instead plain $(call...)
# since variables will not be expanded correctly
$(eval $(call make_test, basic_moveresize))
sound_test.o : sound_test.cpp
echo "Compiling $<..."
$(CXX) $(CXXFLAGS) -c $<
Sound.o : ../Sound.cpp
echo "Compiling $<..."
$(CXX) $(CXXFLAGS) -c $<
sound_test: sound_test.o Sound.o
$(CXX) sound_test.o Sound.o ../debug.o -o $@ $(LIBS)
all: $(ALL) sound_test
clean:
$(RM) $(ALL)
$(RM) *.o

View File

@ -1,17 +0,0 @@
CPPFILES = edialog.cpp
TARGET = edialog
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = edisplayconf.cpp conf.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp ../edelib2/Run.cpp ../edelib2/process.cpp ../edelib2/pty.cpp
TARGET = edisplayconf
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,21 +0,0 @@
CPPFILES = efinder.cpp eglob.cpp
TARGET = efinder
POFILES = locale/ru.po\
locale/sk.po\
locale/hu.po
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = ../edelib2/Util.cpp ../edelib2/Config.cpp eiconsconf.cpp eicon.cpp
TARGET = eiconsconf
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,21 +0,0 @@
CPPFILES = einstaller.cpp einstall.cpp ../edelib2/Util.cpp ../edelib2/Run.cpp ../edelib2/process.cpp ../edelib2/pty.cpp ../edelib2/Config.cpp
TARGET = einstaller
POFILES = locale/ru.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,17 +0,0 @@
CPPFILES = ../edelib2/Util.cpp ../edelib2/Config.cpp ekeys.cpp ekeyconf.cpp Shortcut_Button.cpp
TARGET = ekeyconf
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = elauncher.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp ../edelib2/process.cpp ../edelib2/pty.cpp
TARGET = elauncher
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,208 +0,0 @@
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
# Set emacs mode -*- Makefile -*-
SHELL = /bin/sh
srcdir = .
top_srcdir = ../..
prefix = /usr
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/libexec
datadir = ${prefix}/share
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
libdir = ${exec_prefix}/lib
infodir = ${prefix}/info
mandir = ${prefix}/man
includedir = ${prefix}/include
oldincludedir = /usr/include
DESTDIR =
pkgdatadir = $(datadir)/ede
pkglibdir = $(libdir)/ede
pkgincludedir = $(includedir)/ede
top_builddir = ../..
ACLOCAL = aclocal-1.4
AUTOCONF = autoconf
AUTOMAKE = automake-1.4
AUTOHEADER = autoheader
INSTALL = /usr/bin/install -c
INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS)
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL}
transform = s,x,x,
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
host_alias =
host_triplet = @host@
CC = gcc
CPP = gcc -E
CXX = gcc
EDE_BUILD = 20050111
FLTK_CONFIG = /usr/bin/efltk-config
HAVE_LIB = @HAVE_LIB@
KSTAT_LIB =
LIB = @LIB@
LTLIB = @LTLIB@
MAKEINFO = makeinfo
PACKAGE = ede
USE_NLS = yes
VERSION = 1.0.1.1
PROG = erun
CWD = locale
MSGFMT = msgfmt
SUB_DIRS =
FILES_PO := $(wildcard *.po)
FILES_MO := $(FILES_PO:.po=.mo)
LOCALEDIR = $(prefix)/share/locale
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
DIST_COMMON = Makefile.am Makefile.in
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
TAR = gtar
GZIP_ENV = --best
all: all-redirect
.SUFFIXES:
$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
cd $(top_srcdir) && $(AUTOMAKE) --gnu elauncher/locale/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
cd $(top_builddir) \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
tags: TAGS
TAGS:
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
subdir = elauncher/locale
distdir: $(DISTFILES)
here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(top_distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`; \
cd $(top_srcdir) \
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu elauncher/locale/Makefile
@for file in $(DISTFILES); do \
d=$(srcdir); \
if test -d $$d/$$file; then \
cp -pr $$d/$$file $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file || :; \
fi; \
done
info-am:
info: info-am
dvi-am:
dvi: dvi-am
check-am: all-am
check: check-am
installcheck-am:
installcheck: installcheck-am
install-exec-am:
install-exec: install-exec-am
install-data-am:
install-data: install-data-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
install: install-am
uninstall-am:
uninstall: uninstall-am
all-am: Makefile
all-redirect: all-am
install-strip:
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
installdirs:
mostlyclean-generic:
clean-generic:
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
maintainer-clean-generic:
mostlyclean-am: mostlyclean-generic
mostlyclean: mostlyclean-am
clean-am: clean-generic mostlyclean-am
clean: clean-am
distclean-am: distclean-generic clean-am
distclean: distclean-am
maintainer-clean-am: maintainer-clean-generic distclean-am
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
maintainer-clean: maintainer-clean-am
.PHONY: tags distdir info-am info dvi-am dvi check check-am \
installcheck-am installcheck install-exec-am install-exec \
install-data-am install-data install-am install uninstall-am uninstall \
all-redirect all-am all installdirs mostlyclean-generic \
distclean-generic clean-generic maintainer-clean-generic clean \
mostlyclean distclean maintainer-clean
all: mo-files
mo-files: $(FILES_MO)
install:
$(MAKE) all
for f in *.mo ; do mkdir -p \
$(INSTALL_PREFIX)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES ; \
cp $$f $(INSTALL_PREFIX)$(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(PROG).mo ; done
%.mo: %.po
$(MSGFMT) -f -o $@ $<
clean:
$(RM) $(FILES_MO)
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,22 +0,0 @@
CPPFILES = emenueditor.cpp
TARGET = emenueditor
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = epanelconf.cpp util.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp
TARGET = epanelconf
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,21 +0,0 @@
CPPFILES = escreensaver.cpp escrsaverconf.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp
TARGET = esvrconf
POFILES = locale/ru.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,21 +0,0 @@
CPPFILES = etip.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp
TARGET = etip
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = evolume.cpp prefs.cpp ../edelib2/about_dialog.cpp ../edelib2/Util.cpp ../edelib2/Config.cpp ../edelib2/process.cpp ../edelib2/pty.cpp ../edelib2/Run.cpp
TARGET = evolume
POFILES = locale/ru.po\
locale/sk.po\
locale/hu.po
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = ../edelib2/Util.cpp ../edelib2/Config.cpp ewm.cpp ewmconf.cpp
TARGET = ewmconf
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,22 +0,0 @@
CPPFILES = aboutdialog.cpp logoutdialog.cpp panelbutton.cpp keyboardchooser.cpp taskbutton.cpp workpanel.cpp item.cpp cpumonitor.cpp dock.cpp mainmenu.cpp mainmenu_scan.cpp
TARGET = eworkpanel
POFILES = locale/ru.po\
locale/sr.po\
locale/sk.po\
locale/hu.po\
include ../makeinclude
install:
$(INSTALL_PROGRAM) $(TARGET) $(bindir)
$(INSTALL_LOCALE)
uninstall:
$(RM) $(bindir)/$(TARGET)
clean:
$(RM) $(TARGET)
$(RM) *.o

View File

@ -1,84 +0,0 @@
#
# $Id: makeinclude.in 1652 2006-06-07 19:37:51Z karijes $
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2000-2006 EDE Authors.
#
# This program is licenced under terms of the
# GNU General Public Licence version 2 or newer.
# See COPYING for details.
# Overwrite if you want that be overwriten
# directories
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
includedir = @includedir@
libdir = @libdir@
mandir = @mandir@
srcdir = @srcdir@
sysconfdir = @sysconfdir@
VPATH = @srcdir@
EVOLUME = @EVOLUME@
#locale directory
LOCALEDIR = @prefix@/share/locale
# programs
CXX = @CXX@
MSGFMT = @MSGFMT@
MAKEDEPEND = @MAKEDEPEND@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
RM = @RM@ -f
MKINSTALLDIRS = @HOME_DIR@/mkinstalldirs
# NOTE: this is a function
# it is called like '$(INSTALL_LOCALE)'
INSTALL_LOCALE=\
for f in $(MOFILES); do\
$(MKINSTALLDIRS) $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES;\
$(INSTALL_DATA) $$f $(LOCALEDIR)/`basename $$f .mo`/LC_MESSAGES/$(TARGET).mo;\
done
# compiler flags
CXXFLAGS = -DSHAPE @CXXFLAGS@
# libraries
LIBS = @LIBS@
@SILENT@
.SUFFIXES: .o .cxx .cpp .c .po .mo
OBJECTS:= $(CPPFILES:.cpp=.o) $(CFILES:.c=.o) $(CXXFILES:.cxx=.o)
MOFILES:= $(POFILES:.po=.mo)
all: $(TARGET) $(MOFILES)
$(TARGET): $(OBJECTS)
echo Linking $@
$(CXX) $^ -o $@ $(LIBS)
%.o: %.cpp
echo Compiling $<...
$(CXX) $(CXXFLAGS) -c $<
%.o: %.cxx
echo Compiling $<...
$(CXX) $(CXXFLAGS) -c $<
%.o: %.c
echo Compiling $<...
$(CXX) $(CXXFLAGS)-c $<
%.mo: %.po
echo Translation $<...
$(MSGFMT) $< -o $@