/alps/pcitool

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to driver/Makefile.in

  • Committer: Suren A. Chilingaryan
  • Date: 2016-04-07 15:00:58 UTC
  • Revision ID: csa@suren.me-20160407150058-ll8i3tss5z3pc6na
Fix driver compilation on Ubuntu 14.04

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
            revision="Revision $$build_revision from $$build_branch by $$build_author at $$build_path, last modification from $$build_lastmod" ;\
63
63
            /bin/echo -e "#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES \"$$build_changes\"\\n" > build.h ;\
64
64
        else \
65
 
            grep "#define PCILIB_RELEASE" ../pcilib/build.h &> /dev/null ;\
66
 
            if [ $$? -eq 0 ]; then \
 
65
            if [ -f ../pcilib/build.h ]; then \
 
66
                grep "#define PCILIB_RELEASE" ../pcilib/build.h &> /dev/null ;\
 
67
                res=$$? ;\
 
68
            else \
 
69
                res=-1 ;\
 
70
            fi ;\
 
71
            if [ $$res -eq 0 ]; then \
67
72
                revision="Release \" PCILIB_RELEASE \" (r\" PCILIB_REVISION \") from \" PCILIB_REVISION_BRANCH \" by \" PCILIB_REVISION_AUTHOR \" at $$build_path, last modification from $$build_lastmod" ;\
68
73
                /bin/echo -e "#include \"pcilib/build.h\"\\n#define PCIDRIVER_BUILD \"$$build\"\\n#define PCIDRIVER_REVISION \"$$revision\"\\n#define PCIDRIVER_CHANGES PCILIB_REVISION_MODIFICATIONS\n" > build.h ;\
69
74
            else \