+Sep 17, 2007 Version 4.5.5
+ * better cleaning in makefiles
+ * use "const char" variables for string literals
+
Sep 10, 2007 Version 4.5.4
* configure.ac: Fix builds with multiple versions of wx-config
-- thanks to Steve White
EXTRA_DIST=acsite.m4 make.bat msvc/ctsim.dsw msvc/ctsimtext/ctsimtext.dsp msvc/libctsim/libctsim.dsp msvc/ctsim/ctsim.dsp
+CLEANFILES=docs/html/\* config.status configure.in
+clean-local:
+ rm -rf docs/html
+
#install-data-hook:
# test -d $(datadir) || mkdir -p $(datadir) && chmod 0755 $(datadir)
# install -g root -o root -m 0644 docs/ctsim.htb $(datadir)
SUBDIRS = man libctsupport libctsim html cgi-bin include $(EXTRA_DIRS1) $(EXTRA_DIRS2) $(EXTRA_DIRS3) tools helical
EXTRA_DIST = acsite.m4 make.bat msvc/ctsim.dsw msvc/ctsimtext/ctsimtext.dsp msvc/libctsim/libctsim.dsp msvc/ctsim/ctsim.dsp
+
+CLEANFILES = docs/html/\* config.status configure.in
subdir = .
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
mostlyclean-generic:
clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
@echo "it deletes files that may require special tools to rebuild."
clean: clean-recursive
-clean-am: clean-generic mostlyclean-am
+clean-am: clean-generic clean-local mostlyclean-am
distclean: distclean-recursive
-rm -f $(am__CONFIG_DISTCLEAN_FILES)
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \
- clean-generic clean-recursive ctags ctags-recursive dist \
- dist-all dist-gzip distcheck distclean distclean-generic \
+ clean-generic clean-local clean-recursive ctags ctags-recursive \
+ dist dist-all dist-gzip distcheck distclean distclean-generic \
distclean-hdr distclean-recursive distclean-tags distcleancheck \
distdir distuninstallcheck dvi dvi-am dvi-recursive info \
info-am info-recursive install install-am install-data \
ps-recursive tags tags-recursive uninstall uninstall-am \
uninstall-info-am uninstall-info-recursive uninstall-recursive
+clean-local:
+ rm -rf docs/html
#install-data-hook:
# test -d $(datadir) || mkdir -p $(datadir) && chmod 0755 $(datadir)
+ctsim (4.5.5-1) unstable; urgency=low
+
+ * Better cleaning in makefiles to fix double building (closes:442534)
+
+ -- Kevin M. Rosenberg <kmr@debian.org> Mon, 17 Sep 2007 13:11:14 -0600
+
ctsim (4.5.4-1) unstable; urgency=low
- * New upstrea
+ * New upstream
-- Kevin M. Rosenberg <kmr@debian.org> Mon, 10 Sep 2007 02:18:54 -0600
# Ensure up-to-date versions of config.sub and config.guess
-test -r /usr/share/misc/config.sub && cp -f /usr/share/misc/config.sub config.sub
-test -r /usr/share/misc/config.guess && cp -f /usr/share/misc/config.guess config.guess
+ -test -r Makefile && $(MAKE) clean
dh_clean
install: DH_OPTIONS=
-CLEANFILES=\*.pgm \*.if \*~ \*.pj \.*~ \#\*\# \#\*~
-
-
+CLEANFILES=sample-helical.sh \*.pgm \*.if \*~ \*.pj \.*~ \#\*\# \#\*~
wxcflags = @wxcflags@
wxconfig = @wxconfig@
wxlibs = @wxlibs@
-CLEANFILES = \*.pgm \*.if \*~ \*.pj \.*~ \#\*\# \#\*~
+CLEANFILES = sample-helical.sh \*.pgm \*.if \*~ \*.pj \.*~ \#\*\# \#\*~
subdir = helical
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
struct KeywordCodeTable {
- char* keyword;
+ const char* keyword;
int code;
};
bool ezcmd (const char* const comm);
bool do_cmd(int lx);
- void bad_option(char *opt);
+ void bad_option(const char *opt);
void initPlotSettings();
void initKeywords ();
void addSkipWord (const char* const w);
void addSkipChar (int c);
void addKeyword (const char* const str, int code);
- bool readWord (char *search, int nlet);
+ bool readWord (const char *search, int nlet);
bool readUserToken (char *str, int *code);
bool readString (char *str);
bool readInteger (int *n, int typecode, bool boundcode, int bb1, int bb2);
bool skipTokens ();
void reader ();
bool readText (char *str, int lim);
- void usefile (int source, char *fn);
+ void usefile (int source, const char *fn);
void closefile ();
int lookchar ();
int inchar ();
bool m_bNewlineIsEOC;
struct KeywordCodeList {
- char *keyword;
+ const char *keyword;
int code;
};
void
-EZPlot::bad_option (char *opt)
+EZPlot::bad_option (const char *opt)
{
sys_error (ERR_WARNING, "INVALID option: %s", opt);
}
*/
bool
-POL::readWord (char *search, int nlet)
+POL::readWord (const char *search, int nlet)
{
tok (&token);
if (m_bTrace)
*/
void
-POL::usefile (int source, char *fn)
+POL::usefile (int source, const char *fn)
{
FILE *fp;
const char* const
PhantomElement::convertTypeToName (PhmElemType iType)
{
- static char* pszType = "Unknown";
+ static const char* pszType = "Unknown";
if (iType == PELEM_RECTANGLE)
pszType = "rectangle";
-static char *ctsim16_xpm[] = {
+static const char *ctsim16_xpm[] = {
/* width height ncolors chars_per_pixel */
"16 16 130 2",
/* colors */
/* XPM */
-static char *splash[] = {
+static const char *splash[] = {
/* width height ncolors chars_per_pixel */
"500 500 38 1",
/* colors */
ctsimtext_LDADD=@ctlibs@
ctsimtext_DEPENDENCIES=$(SOURCE_DEPEND)
-realclean:
- rm -f *.pgm *.if *~ *.pj
+CLEANFILES=\*.pgm \*.if \*~ \*.pj sample-ctsim.sh
ctsimtext_lam_SOURCES = ctsimtext.cpp if1.cpp if2.cpp ifinfo.cpp ifexport.cpp phm2if.cpp phm2pj.cpp pj2if.cpp pjinfo.cpp pjrec.cpp nographics.cpp mpiworld.cpp phm2helix.cpp pjHinterp.cpp linogram.cpp
ctsimtext_lam_LDADD=@ctlamlibs@
ctsimtext_LDADD = @ctlibs@
ctsimtext_DEPENDENCIES = $(SOURCE_DEPEND)
+CLEANFILES = \*.pgm \*.if \*~ \*.pj sample-ctsim.sh
+
ctsimtext_lam_SOURCES = ctsimtext.cpp if1.cpp if2.cpp ifinfo.cpp ifexport.cpp phm2if.cpp phm2pj.cpp pj2if.cpp pjinfo.cpp pjrec.cpp nographics.cpp mpiworld.cpp phm2helix.cpp pjHinterp.cpp linogram.cpp
ctsimtext_lam_LDADD = @ctlamlibs@
mostlyclean-generic:
clean-generic:
+ -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-rm -f $(CONFIG_CLEAN_FILES)
ln -sf ctsimtext $(bindir)/pjHinterp
ln -sf ctsimtext $(bindir)/linogram
-realclean:
- rm -f *.pgm *.if *~ *.pj
-
@USE_LAM_TRUE@ctsimtext-lam$(EXEEXT): ctsimtext.cpp if1.cpp if2.cpp ifinfo.cpp ifexport.cpp phm2if.cpp phm2pj.cpp pj2if.cpp pjinfo.cpp pjrec.cpp mpiworld.cpp linogram.cpp ../include/ct.h ../libctsim/libctsim.a ../libctsupport/libctsupport.a
@USE_LAM_TRUE@ $(CC_LAM) @DEFS@ @lamdefs@ $(CFLAGS) $(INCLUDES) -DHAVE_MPI -DNO_MAIN ctsimtext.cpp if1.cpp if2.cpp ifinfo.cpp ifexport.cpp phm2if.cpp phm2pj.cpp pj2if.cpp pjinfo.cpp pjrec.cpp -o ctsimtext-lam $(LDFLAGS) $(LAM_EXTRA_SRC) @ctlibs@
# Tell versions [3.59,3.63) of GNU make to not export all variables.